package com.cat.Command;

/**
 * @author cat
 * @version 2025/5/27 11:07
 * @description
 * @since JDK17
 */

public class Client {
    public static void main(String[] args) {
        // 订单1
        Order order1 = new Order();
        order1.setDiningTable(1);
        order1.setFoodDir("辣椒炒肉", 1);
        order1.setFoodDir("雷碧", 2);

        // 订单2
        Order order2 = new Order();
        order2.setDiningTable(2);
        order2.setFoodDir("大盘鸡", 1);
        order2.setFoodDir("碧样快线", 1);

        // 厨师
        SeniorChef seniorChef = new SeniorChef();

        // 命令1
        Command orderCommand1 = new OrderCommand(seniorChef, order1);
        // 命令2
        Command orderCommand2 = new OrderCommand(seniorChef, order2);


        // 服务员(调用者)
        Waitor waitor = new Waitor();
        waitor.setCommands(orderCommand1);
        waitor.setCommands(orderCommand2);
        waitor.orderUp();

    }
}
